//
//  UIView+YJCategory.h
//  Rail
//
//  Created by hychen on 2018/2/26.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (YJCategory)
/**
 *  添加单击手势
 */
- (void)addTapGestureWithTarget:(id)target action:(SEL)action;

/**
 *  添加长按手势
 */
- (void)addLongPressGestureWithTarget:(id)target action:(SEL)action minDuration:(NSTimeInterval)minDuration;

/**
 *  添加滑动手势
 */
- (void)addPanGestureWithTarget:(id)target action:(SEL)action;

/**
 *  截图
 *  @return 图片控件
 */
- (UIImageView *)shotImageView;

/**
 *  截图
 *  @return 图片
 */
- (UIImage *)shotImage;

/**
 *  变圆
 */
- (void)toCircle;

/**
 *  设置圆角
 */
- (void)setCorner:(CGFloat)corner;

/**
 *  删除所有子控件
 */
- (void)removeAllSubviews;
@end
